import requests
from selenium import webdriver
import time


def http_requests():
    client.get("https://spa2.scrape.center/")
    time.sleep(5)
    html = client.page_source
    print(html)
    with open("home.html", "w", encoding='utf-8') as f:
        f.write(html)
    return


if __name__ == "__main__":
    client = webdriver.Chrome()
    http_requests()
    client.close()
